package com.taobao.askwho.ao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;

import com.taobao.askwho.db.impl.PersonInfoDao;
import com.taobao.askwho.po.PersonInfo;

public class PersonAo {
	public PersonAo(){}
	private static final PersonAo personAo = new PersonAo();
	private PersonInfoDao personInfoDao = new PersonInfoDao();
	Logger logger = Logger.getLogger(UrlAo.class);
	
	public static PersonAo get() {
		return personAo;
	}
	
	public void addPersonInfo(PersonInfo info) throws SQLException {
		personInfoDao.addPersonInfo(info);
	}
	
	public Map<String, PersonInfo> getPersonListByUuidList(List<String> uuidList) {
		return personInfoDao.getPersonListByUuidList(uuidList);
	}	
	
	public void deletePersonInfo(String uuid) throws SQLException {
		personInfoDao.deletePersonInfo(uuid);
	}
}
